package com.cqx.collectionMysql.persistence.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Getter
@Setter
public class Result<T> {
    private int code;

    private String msg;

    private T data;

    public Result(int code, String msg){
        this(code,msg,null);
    }
     public Result(int code, String msg, T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
     }

    public Result() {

    }
}
